//
//  ByViewIndexLoginAfter.m
//  mijifen_ios
//
//  Created by mc on 2017/11/7.
//  Copyright © 2017年 itboye. All rights reserved.
//

#import "ByViewIndexLoginAfter.h"

@implementation ByViewIndexLoginAfter
{
    UIImageView *_logoImg;
    UILabel     *_nameLabel;
}
- (instancetype)init{
    if (self = [super init]) {
        self.popMode = ZKBombPopModeTop;
        self.positionMode = ZKBombPositionModeCenter;
        self.damping = 0.6;
        self.aniDuration = 0.8;
        self.maskView.backgroundColor = [UIColor colorWithWhite:1 alpha:0.6];
        [self setupContents];
        
    }
    return self;
}

- (void)setupContents{
    UIView  *bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH - 40, 150)];
    [self addSubview:bgView];
    bgView.backgroundColor = [UIColor clearColor];
    
    _logoImg = [[UIImageView alloc] init];
    [bgView addSubview:_logoImg];
    [_logoImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@((SCREEN_WIDTH - 40 - 100) / 2));
        make.top.equalTo(@(0));
        make.size.mas_equalTo(CGSizeMake(100, 100));
    }];
    _logoImg.backgroundColor = BY_TEXT_COLOR;
    
    _nameLabel = [[UILabel alloc] init];
    [bgView addSubview:_nameLabel];
    [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_logoImg.mas_bottom).offset(20);
        make.left.equalTo(@(0));
        make.right.equalTo(@(0));
        make.height.equalTo(@(30));
    }];
    _nameLabel.text = @"家惠超市";
    _nameLabel.font = FONT(30);
    _nameLabel.textAlignment = NSTextAlignmentCenter;
    
    self.contentView = bgView;
    
}
@end
